home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / shell / shell.swf / scripts / frame_2 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2004-07-06  |  388 b   |  22 lines

  1. SFX = {};
  2. SFX.volume_setting = 4;
  3. SFX.play = function(str)
  4. {
  5.    lingo("Flsh_soundPlay \"" + str + "\"");
  6. };
  7. SFX.setVolume = function(inc)
  8. {
  9.    lingo("Flsh_volume_set(" + inc + ")");
  10.    this.volume_setting = inc;
  11. };
  12. SFX.onVolumeGet = function(val)
  13. {
  14.    this.volume_setting = val;
  15. };
  16. SFX.init = function()
  17. {
  18.    lingo("Flsh_volume_get");
  19. };
  20. SFX.init();
  21. delete SFX.init;
  22.